<?php
/**
 * author: Administrator
 * Createtime: 2015/10/1410:59
 * description: 
 */

namespace App\Http\Controllers;


use Illuminate\Http\Request;

class UserController extends Controller
{
    public function __construct()
    {
       // $this->middleware('auth');
    }

    public function profile(Request $request)
    {
        $user = $request->user();
        echo $user['name'].'登录成功！';
    }

    public function show($id)
    {
        return "ok 了";
    }
}